﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IAC_2013.com.iac.util
{
    class DateTimeUtils
    {
        public static DateTime convertStringToDate(string date)
        {
            DateTime dateFormat = DateTime.Parse(date);
            return dateFormat;
        }

        public static string convertDateTimeToStringDate(DateTime date)
        {
            string dateFormat = date.ToString("dd/MM/yyyy");
            return dateFormat;
        }
        public static string convertDateTimeToStringDateTime(DateTime date)
        {
            string dateFormat = date.ToString("dd/MM/yyyy HH:mm:ss");
            return dateFormat;
        }
    }
}
